package cn.kgc.spring02.entity.lifecircle;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/27
 * @Description:
 */
public class BB {


    private String str;
    private Integer number;
    public BB(){
        System.out.println("BB() 无参构造方法被调用");
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        System.out.println(" set() 方法被调用");
        this.str = str;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public void init(){
        System.out.println("BB init() 初始化方法被调用");
    }


    public void destroy(){
        System.out.println("  BB destroy() 销毁方法被调用");
    }

}
